﻿namespace Restaurant
{
    using System;
    using System.Linq;

    public class Server : IWorker
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string OfficePosition { get; set; }

        public Server(int id, string name, string officePosition)
        {
            this.ID = id;
            this.Name = name;
            this.OfficePosition = this.GetType().Name.ToString();
        }
        public override string ToString()
        {
            return (String.Format("{0} - {1}", this.Name, this.OfficePosition));
        }
    }
}
